<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends CI_Controller {

	/**
	 * Index Page for this controller.
	 *
	 */
	public function index()
	{
		$data['stylesheet'] = '/theme/' ;
		$data['image_path'] = '/theme/images/' ;
		$data['head_title'] = '盘享网-互联网网盘资源搜索-互联网网盘搜索引擎' ;
		$data['keywords'] = '盘享，盘享网，网盘，云盘，互联网网盘，网盘分享，百度网盘' ;
		$data['description'] = '盘享网提供互联网网盘资源搜索和检索，促进资源的便捷获取和共享' ;

		$this->load->model('mrecords');  
		$this->load->model('muser');  
		$data['news'] = $this->mrecords->get_all(0,'created');  
		$data['videos'] = $this->mrecords->get_all(1);  
		$data['musics'] = $this->mrecords->get_all(2);  
		$data['images'] = $this->mrecords->get_all(3);  
		$data['albums'] = $this->mrecords->get_all(7);          // 专辑资源
		$data['documents'] = $this->mrecords->get_all(4);   // 文档资源
		$data['others'] = $this->mrecords->get_all(6);          // 其他资源
		$data['fulis'] = $this->mrecords->get_all(8);              // 福利
		$data['users'] = $this->muser->get_all('uid');           // 达人列表

		$this->load->view('header',$data);
		$this->load->view('home');
		$this->load->view('footer');
	}
}